using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;

public partial class CheckCustomerInfo : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string sql = "select count(*) from customerinfo where (stateprov = 'B.C.' or stateprov = 'Alberta' or stateprov ='British Columbia') and customerid='" + Request.QueryString["strCustomerId"] + "'";
        //string sql = "select count(*) from customerinfo where (stateprov = 'B.C.' or stateprov = 'Alberta' or stateprov ='British Columbia') and customerid='CC200985'";
       
        OleDbConnection conn= new OleDbConnection(System.Configuration.ConfigurationManager.AppSettings["TimesSW1"]);
        OleDbCommand cmd = new OleDbCommand(sql, conn);
        conn.Open();
        Response.Write(cmd.ExecuteScalar());
        conn.Close();
    }
}
